ARCH=linux32
SHELL = sh
CXX = g++
CXXFLAGS = -O4 -Wall -Wextra -I./SOIL_libs
COMPILE = $(CXX) $(CXXFLAGS) -c
LD = $(CXX)
LDFLAGS = -L./SOIL_libs
LIBS = -lSOIL_$(ARCH) -lglut -lm
TARGETS = teapots

.PHONY : clean, all

all : $(TARGETS)

teapots : main.o util.o Tire.o Teapot.o Track.o Ghostpot.o Timer.o
	$(LD) $(LDFLAGS) $^ $(LIBS) -o $@

%.o: %.cpp
	$(COMPILE) $< -o $@
	
clean:
	rm -f *.o $(TARGETS)
